<template>
  <div class="info">
    <div class="head_box">
      <!-- <div class="select-map" @click="showDialog = true"> -->
      <!-- 请选择地区 -->
      <el-cascader
        class="select-map"
        ref="cascader"
        v-model="areaSelect"
        :options="map"
        :props="{ checkStrictly: true, expandTrigger: 'hover' }"
        placeholder="请选择地区"
        @change="handleChange"
      >
      </el-cascader>
      <!-- </div> -->
      <div class="select" @click="showDialog = true" v-if="industry_cate == 2">
        请选择产业 <img src="~@img/public/icon-choose.png" alt="" />
      </div>
      <div class="address clearfix">
        <div class="current">
          当前位置：
          <span class="wholeCountry">全国</span>
        </div>
        <div v-for="(item, index) in area" :key="index" style="margin-top:0">
          <div class="options" v-if="item != ''">
            <img src="~@img/public/icon-next.png" alt="" />
            <span>
              {{ item }}
              <img
                @click="closeArea(index, item)"
                src="~@img/public/icon-close.png"
                alt=""
              />
            </span>
          </div>
        </div>

        <div class="options" v-if="product">
          <img src="~@img/public/icon-next.png" alt="" />
          <span>
            {{ product }}
            <img
              @click="closeIndustry"
              src="~@img/public/icon-close.png"
              alt=""
            />
          </span>
        </div>
      </div>
    </div>
    <div class="info-flex">
      <div class="look-enterprise">
        <div class="info-title">企业速览</div>
        <ul class="flex-ul">
          <li class="one" @click="goList(7)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">企业总数</p>
            <p class="num">
              <span class="num">{{ nums.nums_all }}</span> <span>户</span>
            </p>
          </li>
          <li class="two">
            <img src="~@img/public/icon-zsld-zl.png" alt="" />
            <p class="tip">授权发明专利</p>
            <p class="num">
              <span class="num">{{ nums.nums_patent }}</span> <span>件</span>
            </p>
          </li>
          <li class="three">
            <img src="~@img/public/icon-zsld-jyrs.png" alt="" />
            <p class="tip">就业人数</p>
            <p class="num">
              <span class="num">{{ nums.nums_bao }}</span> <span>人</span>
            </p>
          </li>
          <li @click="goList(4)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">上市企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_quoted }}</span> <span>户</span>
            </p>
          </li>

          <li @click="goList(2)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">高新技术企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_hignew }}</span> <span>户</span>
            </p>
          </li>
          <li @click="goList(3)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">科技型中小企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_tbe }}</span> <span>户</span>
            </p>
          </li>
          <li @click="goList(6)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">独角兽企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_unicorn }}</span> <span>户</span>
            </p>
          </li>
          <li @click="goList(1)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">瞪羚企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_dengl }}</span> <span>户</span>
            </p>
          </li>
          <li @click="goList(5)">
            <img src="~@img/public/icon-zsld-qy.png" alt="" />
            <p class="tip">融资企业</p>
            <p class="num">
              <span class="num">{{ nums.nums_financ }}</span> <span>户</span>
            </p>
          </li>
        </ul>
      </div>
      <div class="trend-prediction">
        <div class="info-title">趋势预判</div>
        <div class="chart-box">
          <div class="chart-box_header clearfix">
            <div class="f-l">
              <span
                :class="['first', select_method == 1 ? 'active' : '']"
                @click="changeSelect('method', 1)"
              >
                新增量
              </span>
              <span
                :class="[select_method == 2 ? 'active' : '']"
                @click="changeSelect('method', 2)"
              >
                累积量
              </span>
            </div>
            <div class="f-r">
              <span
                :class="[select_time == 1 ? 'active' : '']"
                @click="changeSelect('time', 1)"
              >
                年度
              </span>
              <span
                :class="[select_time == 2 ? 'active' : '']"
                @click="changeSelect('time', 2)"
              >
                季度
              </span>
              <span
                :class="[select_time == 3 ? 'active' : '']"
                @click="changeSelect('time', 3)"
              >
                月度
              </span>
            </div>
          </div>
          <div class="chart-line" ref="chart_line"></div>
        </div>
      </div>
    </div>
    <div class="dialog_box">
      <el-dialog title="请选择产业" :visible.sync="showDialog">
        <ul class="Industrial-chain">
          <li class="top_chain">
            <div class="chain_head">上游</div>
            <el-collapse accordion>
              <el-collapse-item
                v-for="(item, index) in upstream.subNodeList"
                :key="index"
              >
                <template slot="title">
                  <div
                    @click="getProduct(item.node, item.node)"
                    :class="willIndustry == item.node ? 'title_active' : ''"
                  >
                    {{ item.node }}
                  </div>
                </template>
                <ul>
                  <li
                    v-for="(itemx, indexx) in item.subNodeList"
                    :key="indexx"
                    @click="getProduct(itemx.node, itemx.node)"
                    :class="willIndustry == itemx.node ? 'text_active' : ''"
                  >
                    {{ itemx.node }}
                    <i
                      class="el-icon-arrow-right"
                      v-if="itemx.subNodeList.length > 0"
                      :class="subNodeListShow == itemx.node ? 'isactive' : ''"
                    ></i>
                    <ul
                      v-if="
                        itemx.subNodeList.length > 0 &&
                          subNodeListShow == itemx.node
                      "
                    >
                      <li
                        v-for="(items, indess) in itemx.subNodeList"
                        :key="indess"
                        @click.stop="
                          getProduct(items.node, items.node, itemx.node)
                        "
                        :class="willIndustry == items.node ? 'text_active' : ''"
                      >
                        {{ items.node }}
                      </li>
                    </ul>
                  </li>
                </ul>
              </el-collapse-item>
              <!-- <div
              v-if="
                upstream &&
                  upstream.subNodeList &&
                  upstream.subNodeList.length == 0
              "
            >
              暂无产业
            </div> -->
            </el-collapse>
          </li>
          <li class="center_chain">
            <div class="chain_head">中游</div>
            <el-collapse accordion>
              <el-collapse-item
                v-for="(item, index) in midstream.subNodeList"
                :key="index"
              >
                <template slot="title">
                  <div
                    @click="getProduct(item.node, item.node)"
                    :class="willIndustry == item.node ? 'title_active' : ''"
                  >
                    {{ item.node }}
                    <!-- ({{ item.count }}) -->
                  </div>
                </template>
                <ul>
                  <li
                    v-for="(itemx, indexx) in item.subNodeList"
                    :key="indexx"
                    @click="getProduct(itemx.node, itemx.node)"
                    :class="willIndustry == itemx.node ? 'text_active' : ''"
                  >
                    {{ itemx.node }}
                    <i
                      class="el-icon-arrow-right"
                      v-if="itemx.subNodeList.length > 0"
                      :class="subNodeListShow == itemx.node ? 'isactive' : ''"
                    ></i>
                    <ul
                      v-if="
                        itemx.subNodeList.length > 0 &&
                          subNodeListShow == itemx.node
                      "
                    >
                      <li
                        v-for="(items, indess) in itemx.subNodeList"
                        :key="indess"
                        @click.stop="
                          getProduct(items.node, items.node, itemx.node)
                        "
                        :class="willIndustry == items.node ? 'text_active' : ''"
                      >
                        {{ items.node }}
                      </li>
                    </ul>
                  </li>
                </ul>
              </el-collapse-item>
            </el-collapse>
          </li>
          <li class="bottom_chain">
            <div class="chain_head">下游</div>
            <el-collapse accordion>
              <el-collapse-item
                v-for="(item, index) in downstream.subNodeList"
                :key="index"
              >
                <template slot="title">
                  <div
                    @click="getProduct(item.node, item.node)"
                    :class="willIndustry == item.node ? 'title_active' : ''"
                  >
                    {{ item.node }}
                    <!-- ({{ item.count }}) -->
                  </div>
                </template>
                <ul>
                  <li
                    v-for="(itemx, indexx) in item.subNodeList"
                    :key="indexx"
                    @click="getProduct(itemx.node, itemx.node)"
                    :class="willIndustry == itemx.node ? 'text_active' : ''"
                  >
                    {{ itemx.node }}
                    <i
                      class="el-icon-arrow-right"
                      v-if="itemx.subNodeList.length > 0"
                      :class="subNodeListShow == itemx.node ? 'isactive' : ''"
                    ></i>
                    <ul
                      v-if="
                        itemx.subNodeList.length > 0 &&
                          subNodeListShow == itemx.node
                      "
                    >
                      <li
                        v-for="(items, indess) in itemx.subNodeList"
                        :key="indess"
                        @click.stop="
                          getProduct(items.node, items.node, itemx.node)
                        "
                        :class="willIndustry == items.node ? 'text_active' : ''"
                      >
                        {{ items.node }}
                      </li>
                    </ul>
                  </li>
                </ul>
              </el-collapse-item>
            </el-collapse>
          </li>
        </ul>
        <div slot="footer" class="dialog-footer">
          <el-button @click="showDialog = false">
            取 消
          </el-button>
          <el-button type="primary" @click="selectIndustry">
            确 定
          </el-button>
        </div>
      </el-dialog>
    </div>
  </div>
</template>
<script>
import { mapData } from "./mapData.js";
import { getRegion, radarSearch, chainGraph, radarTendency } from "@api/radar";
export default {
  data() {
    return {
      chartLine: null,
      areaSelect: [],
      area: ["", "", ""],
      map: mapData,
      select_method: 1,
      select_time: 1,
      // 上中下游
      IndustrialChain: {},
      // 上游
      upstream: {},
      // 中游
      midstream: {},
      // 下游
      downstream: {},
      // 上中下游中的下级是否显示
      subNodeListShow: false,
      // 上中下游点击产业
      product: "",
      // 将要选中的行业
      willIndustry: "",
      showDialog: false,

      nums: {
        nums_all: "",
        nums_bao: "",
        nums_capital: "",
        nums_dengl: "",
        nums_financ: "",
        nums_hignew: "",
        nums_patent: "",
        nums_quoted: "",
        nums_tbe: "",
        nums_unicorn: "",
      },
      lineData_x: [],
      lineData_1: [],
      lineData_2: [],
    };
  },
  props: ["industry_id", "industry_cate"],
  watch: {
    industry_id(nv, ov) {
      this.area = ["", "", ""];
      this.product = "";
      this.willIndustry = "";
      this.select_time = 1;
      this.select_method = 1;
      this.searchRadarEnums();
      this.getRadarTendency();
      if (this.industry_cate == "2") {
        this.getChainGraph();
      }
    },
  },
  mounted() {
    this.$nextTick(() => {
      this.initChartLine();
      // this.getRegionData();
      this.searchRadarEnums();
      this.getRadarTendency();
      if (this.industry_cate == "2") {
        this.getChainGraph();
      }
    });
  },
  methods: {
    async getRegionData() {
      let res = await getRegion();
      if (res.code && res.code != 0) {
      } else {
        this.map = res;
      }
    },
    async searchRadarEnums() {
      let res = await radarSearch({
        inid: this.industry_id,
        area: this.area,
        product: this.product,
      });
      if (res.code && res.code != 0) {
      } else {
        this.nums = res;
      }
    },
    async getChainGraph() {
      let res = await chainGraph({
        inid: this.industry_id,
        area: this.area,
      });
      if (res.code && res.code != 0) {
      } else {
        this.IndustrialChain = res;
        this.upstream = this.IndustrialChain.nodeList[0];
        this.midstream = this.IndustrialChain.nodeList[1];
        this.downstream = this.IndustrialChain.nodeList[2];
      }
    },
    async getRadarTendency() {
      let res = await radarTendency({
        inid: this.industry_id,
        area: this.area,
        product: this.product,
        sone: 1, //      # 选择1，1企业个数，2注册资本
        stwo: this.select_time, //    # 选择2， 1年度，2季度，3月度
        sthr: this.select_method, //    # 选择3， 1新增量，2累积量
      });
      let res2 = await radarTendency({
        inid: this.industry_id,
        area: this.area,
        product: this.product,
        sone: 2, //      # 选择1，1企业个数，2注册资本
        stwo: this.select_time, //    # 选择2， 1年度，2季度，3月度
        sthr: this.select_method, //    # 选择3， 1新增量，2累积量
      });
      this.lineData_x = [];
      this.lineData_1 = [];
      this.lineData_2 = [];
      if (res.code && res.code != 0) {
      } else {
        res.map((item) => {
          this.lineData_x.push(item.lable);
          this.lineData_1.push(item.value);
        });
        //       : [],
      }
      if (res2.code && res2.code != 0) {
      } else {
        res2.map((item) => {
          this.lineData_2.push(item.value);
        });
      }
      this.upChartData();
    },
    goList(select) {
      this.$router.push({
        name: "radareplist",
        query: {
          inid: this.industry_id,
          area1: this.area[0] || "",
          area2: this.area[1] || "",
          area3: this.area[2] || "",
          select,
          product: this.product,
          activeMenu: "radar",
        },
      });
    },
    // 上中下游 展示
    getProduct(node, name, fname) {
      // this.product = node;
      this.willIndustry = name;
      if (fname) {
        if (this.subNodeListShow == name) {
          this.subNodeListShow = false;
        } else {
          this.subNodeListShow = fname;
        }
      } else {
        if (this.subNodeListShow == name) {
          this.subNodeListShow = false;
        } else {
          this.subNodeListShow = name;
        }
      }
    },
    closeIndustry() {
      this.product = "";
      this.searchRadarEnums();
      this.getRadarTendency();
    },
    selectIndustry() {
      this.product = this.willIndustry;
      this.showDialog = false;
      this.searchRadarEnums();
      this.getRadarTendency();
    },
    handleChange(val) {
      this.area = [val[0] || "", val[1] || "", val[2] || ""];
      this.areaSelect = [];

      this.getChainGraph();
      this.searchRadarEnums();
      this.getRadarTendency();
    },
    changeSelect(type, active) {
      if (type == "method") {
        this.select_method = active;
      } else {
        this.select_time = active;
      }
      this.getRadarTendency();
    },
    // 关闭地图
    closeArea(index, name) {
      if (index == 0) {
        this.area[0] = "";
        this.area[1] = "";
        this.area[2] = "";
      }
      if (index == 1) {
        this.area[1] = "";
        this.area[2] = "";
      }
      if (index == 2) {
        this.area[2] = "";
      }
      this.getChainGraph();
      this.searchRadarEnums();
      this.getRadarTendency();
    },
    // 产业分析 --- 初始化图表
    initChartLine() {
      this.chartLine = this.$echarts.init(this.$refs.chart_line);
      let initOption = {
        grid: {
          top: "20%",
          left: "10%",
          right: "10%",
          bottom: "14%",
        },
        dataZoom: [
          {
            start: 75,
            type: "inside",
          },
          {},
        ],
        xAxis: {
          type: "category",
          axisTick: {
            show: false,
          },
          axisLine: {
            show: true,
            lineStyle: {
              color: "#EEF3F8",
            },
          },
          axisLabel: {
            color: "#A9B0B9",
            textStyle: {
              fontSize: 12,
            },
          },
        },
        yAxis: [
          {
            type: "value",
            min: 0,
            // splitNumber: 8,
            name: "企业数量统计（个）",
            nameTextStyle: {
              color: "#A9B0B9",
              fontSize: 12,
              padding: [0, 10, 10, 0],
            },
            axisLabel: {
              // formatter: function(value) {
              //   num = value;
              //   if (num && num != "undefined" && num != "null") {
              //     let numS = num;
              //     numS = numS.toString();
              //     numS = numS.replace(/,/gi, "");
              //     return numS;
              //   } else {
              //     return num;
              //   }
              // },
              color: "#A9B0B9",
              textStyle: {
                fontSize: 12,
              },
            },
            axisLine: {
              show: true,
              lineStyle: {
                color: "#EEF3F8",
              },
            },
            axisTick: {
              show: false,
            },
            splitLine: {
              lineStyle: {
                color: "#EEF3F8",
              },
            },
          },
          {
            type: "value",
            min: 0,
            // max: max1, // 计算最大值
            // interval: max1 / 5, // 平均分为5份
            // splitNumber: 8,
            name: "注册资本（万元）",
            nameTextStyle: {
              color: "#A9B0B9",
              fontSize: 12,
              padding: [0, 10, 10, 0],
            },
            axisLabel: {
              color: "#A9B0B9",
              textStyle: {
                fontSize: 12,
              },
            },
            axisLine: {
              show: true,
              lineStyle: {
                color: "#EEF3F8",
              },
            },
            axisTick: {
              show: false,
            },
            splitLine: {
              lineStyle: {
                color: "#EEF3F8",
              },
            },
          },
        ],
        legend: {
          left: "center",
          top: "10%",
          itemWidth: 40, // 设置宽度
          itemHeight: 16, // 设置高度
          textStyle: {
            color: "#666666",
            fontSize: 16,
          },
        },
        tooltip: {
          trigger: "axis",
          backgroundColor: "rgba(255, 255, 255,0.9)",
          extraCssText: "box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);",
          padding: 5,
          textStyle: {
            color: "#555",
          },
          axisPointer: {
            type: "line",
            lineStyle: {
              color: "#C0CADB",
              type: "solid",
            },
          },
        },
        series: [
          {
            name: "企业个数",
            type: "line",
            smooth: true,
            yAxisIndex: 0,
            showSymbol: false,
            symbolSize: 10,
            itemStyle: {
              color: "#6dacff",
              lineStyle: {
                width: 5,
                type: "dotted", //'dotted'虚线 'solid'实线
              },
            },
          },
          {
            name: "注册资本",
            type: "line",
            smooth: true,
            itemStyle: {
              color: "#ff7e7e",
            },
            symbolSize: 10,
            showSymbol: false,
            yAxisIndex: 1,
          },
        ],
      };
      this.chartLine.setOption(initOption);
    },
    // 产业分析 --- 更新图表数据
    upChartData() {
      if (document.body.offsetWidth < 1530) {
        let option = {
          xAxis: {
            data: this.lineData_x,
          },
          grid: {
            top: "30%",
          },
          series: [
            {
              data: this.lineData_1,
            },
            {
              data: this.lineData_2,
            },
          ],
        };
        this.chartLine.setOption(option);
      } else {
        let option = {
          xAxis: {
            data: this.lineData_x,
          },
          series: [
            {
              data: this.lineData_1,
            },
            {
              data: this.lineData_2,
            },
          ],
        };
        this.chartLine.setOption(option);
      }
    },
  },
};
</script>
<style lang="less" scoped>
.info {
  width: 100%;
  height: 100%;
  // overflow: hidden;
}
.scroll {
  overflow-y: scroll;
  scrollbar-color: #767ffe #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #767ffe, #79aefe);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
.head_box {
  width: 100%;
  height: 90px;
  background: #ffffff;
  box-shadow: 0px 0px 9px 0px rgba(189, 189, 189, 0.67);
  border-radius: 10px;
}
.el-cascader {
  margin: 25px 30px 25px 30px;
  float: left;
  width: 160px;
  height: 40px;
  line-height: 40px;
  opacity: 0.99;
}
/deep/ .el-cascader .el-input {
  width: 160px;
  height: 40px;
}
/deep/ .el-input__inner {
  color: #666666;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cccccc;
  font-size: 18px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  text-align: center;
}
.select {
  float: left;
  margin: 25px 30px 25px 30px;
  width: 160px;
  height: 40px;
  line-height: 40px;
  background: #446db3;
  box-shadow: 0px 2px 5px 0px rgba(25, 75, 183, 0.5);
  opacity: 0.99;
  text-align: center;
  border-radius: 10px;
  font-size: 18px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  img {
    margin-top: -2px;
    vertical-align: middle;
  }
}
.address {
  float: left;
  div {
    margin-top: 32px;
    float: left;
    height: 28px;
    line-height: 26px;
    cursor: pointer;
    img {
      margin: 0 8px;
    }
  }
  .options {
    span {
      display: inline-block;
      box-sizing: border-box;
      padding: 0 10px;
      height: 28px;
      background: #ffffff;
      border: 1px solid #5889dc;
      border-radius: 14px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #5889dc;
      span {
        vertical-align: middle;
      }
      cursor: default;
      img {
        margin: -3px 2px 0 2px;
        cursor: default;
        vertical-align: middle;
        width: 11px;
        height: 11px;
      }
    }
  }
  .current {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #666666;
    cursor: default;
  }
  .wholeCountry {
    color: #333;
  }
}
.info-flex {
  padding-top: 10px;
  display: flex;
  height: calc(100% - 90px);
  .info-title {
    height: 58px;
    line-height: 58px;
    font-size: 18px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #333333;
  }
}
.look-enterprise {
  flex: 0 0 650px;
  .flex-ul {
    width: 100%;
    height: calc(100% - 58px);
    display: flex;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-row-gap: 30px;
    grid-column-gap: 20px;
    li {
      position: relative;
      flex: 0 0 33%;
      padding: 20px 0 20px 40px;
      background: rgba(120, 163, 255, 0.05);
      box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.1);
      border-radius: 6px;
      cursor: pointer;
      &:hover {
        box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.2);
        transition: 0.5s;
      }
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 6px;
        height: 0%;
        background: #78a3ff;
        border-radius: 6px 0px 0px 6px;
        transition: 0.5s;
      }
      &:hover::after {
        height: 100%;
      }
      img {
        width: 47px;
        height: 47px;
      }
      p.tip {
        height: 18px;
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        color: #666666;
      }
      p.num {
        margin-top: 16px;
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #999999;
        span.num {
          font-size: 30px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          color: #78a3ff;
        }
        span {
          vertical-align: middle;
        }
      }
      &.one {
        background: rgba(120, 163, 255, 0.05);
      }
      &.two {
        cursor: default;
        background: rgba(255, 114, 114, 0.05);
        p.num span.num {
          color: #ff7272;
        }
        &::after {
          background: #ff7272;
        }
      }
      &.three {
        cursor: default;
        background: rgba(23, 208, 177, 0.05);
        p.num span.num {
          color: #17d0b1;
        }
        &::after {
          background: #17d0b1;
        }
      }
    }
  }
}
.trend-prediction {
  margin-left: 50px;
  flex: 1;
  .chart-box {
    position: relative;
    padding: 30px;
    width: 100%;
    height: calc(100% - 58px);
    background: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(189, 189, 189, 0.67);
    border-radius: 10px;
  }
  .chart-box_header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 999;
    .f-l {
      float: left;
    }
    .f-r {
      float: right;
    }
  }
  .chart-line {
    width: 100%;
    height: 100%;
  }
}
.chart-box_header {
  span {
    width: 80px;
    display: inline-block;
    height: 32px;
    line-height: 32px;
    border: 1px solid #5889dc;
    color: #5889dc;
    border-radius: 5px;
    margin-left: 10px;
    text-align: center;
    cursor: default;
  }
  span.first {
    margin-left: 0;
  }
  span.active {
    color: #fff;
    background: #5889dc;
  }
  span.long {
    width: 110px;
  }
}
/deep/ .el-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 780px;
  height: 300px;
  margin-left: -390px;
  margin-top: -150px !important;
  background: #ffffff;
  box-shadow: 0px 5px 50px 0px rgba(186, 186, 186, 0.5);
  border-radius: 20px;
}
/deep/ .el-dialog__header {
  width: 604px;
  margin: 0 auto;
  padding: 0;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-bottom: 1px dashed #dddddd;
}
/deep/ .el-dialog__title {
  font-size: 30px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #0143b3;
}
/deep/ .el-dialog__body {
  text-align: center;
  height: calc(100% - 160px);
}
/deep/ .el-dialog__body {
  span {
    display: inline-block;
    width: 120px;
    font-size: 18px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
  }
  span.tips {
    margin: 20px 0;
    width: 100%;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
  }
  text-align: center;
}
/deep/ .el-dialog__footer {
  padding: 0;
  text-align: center;
}
/deep/.el-dialog .el-button--default {
  width: 247px;
  height: 48px;
  line-height: 0.8;
  border: 2px solid #0043b3;
  border-radius: 10px;
  font-size: 26px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #0043b3;
}
/deep/.el-dialog .el-button--primary {
  width: 247px;
  height: 48px;
  line-height: 0.8;
  background: linear-gradient(90deg, #1a6dc1, #0043b3);
  box-shadow: 0px 5px 15px 0px rgba(1, 73, 130, 0.5);
  border-radius: 10px;
  font-size: 26px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #fff;
}

/deep/.el-dialog .el-input__inner {
  height: 50px;
  line-height: 50px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 0;
  font-size: 18px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333;
  line-height: 33px;
}
/deep/.el-dialog .el-input__inner:focus {
  background: #f7f7f7;
}

/deep/.el-dialog .el-input__inner:hover {
  border-color: transparent;
}
/deep/ .el-collapse-item__header,
/deep/ .el-collapse-item__wrap {
  background: transparent;
}
/deep/ .dialog_box .el-dialog {
  width: 1000px;
  height: 720px;
  margin-left: -500px !important;
  margin-top: -320px !important;
}

.Industrial-chain {
  display: flex;
  height: 95%;
  width: 726px;
  margin: 0 auto;
  justify-content: space-between;
  align-self: center;
  & > li {
    // width: 480px;
    flex: 1;
    overflow: hidden;
    cursor: default;
    li {
      font-weight: bold;
      cursor: default;
      li {
        font-weight: 400;
      }
    }
  }

  .chain_head {
    // height: 48px;
    // line-height: 48px;
    width: 230px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #ffffff;
    border-radius: 6px;
    text-align: center;
  }
  .top_chain {
    margin: 0 18px 0 0;
    .chain_head {
      background: linear-gradient(0deg, #747bfe 0%, #468ae4 100%);
      box-shadow: 0px 2px 5px 0px rgba(32, 46, 127, 0.5);
    }

    /deep/ .el-collapse {
      height: calc(100% - 70px);
      margin-top: 10px;
      background: rgba(120, 163, 255, 0.15);
      border-radius: 6px;
      overflow-y: scroll;
      scrollbar-color: #767ffe #ebf1ff; //滚动条轨道颜色   滚动条滑块的颜色
      scrollbar-width: 6px;
      scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

      &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
        height: 70px;
      }
      &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 6px;
        background: linear-gradient(0deg, #747bfe, #468ae4);
      }
      &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        background: #ebf1ff;
        border-radius: 6px;
      }
    }
  }
  .center_chain {
    margin: 0 18px 0 0;

    .chain_head {
      background: linear-gradient(0deg, #ff7372 0%, #fba361 100%);
      box-shadow: 0px 2px 5px 0px rgba(148, 31, 28, 0.5);
    }
    /deep/ .el-collapse {
      height: calc(100% - 70px);
      margin-top: 10px;
      background: rgba(255, 114, 114, 0.15);
      border-radius: 6px;
      // overflow-y: auto;
      overflow-y: scroll;
      scrollbar-color: #ff7c78 #ffeaea; //滚动条轨道颜色   滚动条滑块的颜色
      scrollbar-width: 6px;
      scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

      &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
        height: 70px;
      }
      &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 6px;
        background: linear-gradient(0deg, #ff7c78, #fd9965);
      }
      &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        background: #ffeaea;
        border-radius: 6px;
      }
    }
  }
  .bottom_chain {
    margin: 0 0 0 0;
    .chain_head {
      background: linear-gradient(0deg, #12adae 0%, #17d0b1 100%);
      box-shadow: 0px 2px 5px 0px rgba(9, 120, 121, 0.5);
    }
    /deep/ .el-collapse {
      margin-top: 10px;
      height: calc(100% - 70px);
      background: rgba(23, 208, 177, 0.15);
      border-radius: 6px;
      overflow-y: scroll;
      scrollbar-color: #1ed0c4 #dcf8f3; //滚动条轨道颜色   滚动条滑块的颜色
      scrollbar-width: 6px;
      scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

      &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
        height: 70px;
      }
      &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 6px;
        background: linear-gradient(0deg, #1ed0c4, #19d0b2);
      }
      &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        background: #dcf8f3;
        border-radius: 6px;
      }
    }
  }
}
// 产业链样式修改
/deep/.top .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 252px;
  overflow-y: scroll;
  scrollbar-color: #767ffe #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失
  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #767ffe, #79aefe);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.center .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 252px;
  overflow-y: scroll;
  scrollbar-color: #ff7c78 #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失
  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #ff7c78, #fd9965);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.bottom .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 252px;
  overflow-y: scroll;
  scrollbar-color: #1ed0c4 #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失
  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #1ed0c4, #19d0b2);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.el-collapse-item__header {
  position: relative;
  margin-top: 20px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #333333;
  text-align: center !important;
  border: none;
  div {
    width: 100%;
  }
}

/deep/.el-collapse-item__content {
  padding-bottom: 0;
  text-align: center;
  li {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #666666;
    line-height: 30px;
  }
}
/deep/.el-collapse-item__wrap {
  border: none;
}
/deep/.el-collapse-item__arrow {
  position: absolute;
  right: 10px;
}
.isactive {
  transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
  -o-transform: rotate(90deg);
}
.el-collapse-item__header div.title_active {
  color: #0043b3;
}
.el-collapse-item__content li.text_active {
  color: #0043b3;
  font-weight: bold;
  li {
    color: #666;
    font-weight: 400;
  }
}

/*
  *常用电脑尺寸  1680 * 900
  *              1536 * 864
  *              1440 * 900
  *ipad pro      1366 * 1024
  *ipad mini     1024 * 768
  *ipad          1024 * 768
 */
/*分辨率低于1680，采用下面的样式*/
@media screen and (max-device-width: 1680px) {
  .look-enterprise .flex-ul li {
    padding: 14px 0 14px 30px;
  }
}
/*分辨率低于1536，采用下面的样式*/
@media screen and (max-device-width: 1536px) {
  .look-enterprise .flex-ul li {
    padding: 8px 0 8px 30px;
  }
  .chart-box_header span {
    width: 48px;
    font-size: 14px;
  }
  .look-enterprise .flex-ul {
    height: calc(100% - 58px);
    grid-row-gap: 20px;
    grid-column-gap: 20px;
  }
  .info-flex .info-title {
    height: 40px;
    line-height: 40px;
  }

  .look-enterprise .flex-ul li img {
    width: 40px;
    height: 40px;
  }
  .look-enterprise .flex-ul li p.tip {
    height: 16px;
    font-size: 16px;
  }
  .look-enterprise .flex-ul li p.num span.num {
    font-size: 26px;
  }
  .trend-prediction .chart-box_header {
    padding: 20px;
  }
  .trend-prediction[data-v-441f026e] {
    margin-left: 30px;
  }
  .el-cascader {
    margin: 15px;
  }
  .head_box {
    display: flex;
    justify-content: flex-start;
    height: 70px;
    .address > div {
      margin-top: 22px;
    }
  }
  .select {
    margin: 15px;
  }
  .address {
    float: left;
    width: 630px;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-color: #767ffe #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
    scrollbar-width: 4px;
    scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失
    &::-webkit-scrollbar {
      /*滚动条整体样式*/
      width: 4px; /*高宽分别对应横竖滚动条的尺寸*/
      height: 4px;
    }
    &::-webkit-scrollbar-thumb {
      /*滚动条里面小方块*/
      border-radius: 4px;
      background: linear-gradient(0deg, #767ffe, #79aefe);
    }
    &::-webkit-scrollbar-track {
      /*滚动条里面轨道*/
      background: #e9f3ff;
      border-radius: 4px;
    }
    & > div {
      display: inline-block;
      float: none;
      div {
        margin-top: 10px;
      }
    }
  }
}
/*分辨率低于1440，采用下面的样式*/
@media screen and (max-device-width: 1440px) {
  .look-enterprise .flex-ul li {
    padding: 8px 0 8px 20px;
  }
  .look-enterprise .flex-ul li p.num span.num {
    font-size: 28px;
  }
  .look-enterprise {
    flex: 0 0 540px;
  }
}
/*分辨率低于1366，采用下面的样式*/
@media screen and (max-device-width: 1366px) {
  .look-enterprise {
    flex: 0 0 500px;
  }
  .look-enterprise .flex-ul li {
    padding: 30px 0 30px 20px;
  }
  .trend-prediction {
    margin-left: 20px;
  }
  .chart-box_header span {
    width: 50px;
  }
}
/*分辨率低于1180，采用下面的样式*/
@media screen and (max-device-width: 1180px) {
  .info-flex {
    flex-direction: column;
    overflow: auto;
  }
  .trend-prediction {
    flex: 0 0 500px;
  }
  .chart-box_header span {
    width: 80px;
  }
  .trend-prediction {
    margin-left: 0;
  }
  .address .options span {
    font-size: 12px;
  }
  .address .current {
    font-size: 12px;
  }
  .address {
    float: none;
    margin-left: 10px;
  }
  .head_box {
    height: auto;
  }
  .info-flex {
    height: calc(100% - 160px);
  }
}
/*分辨率低于1024，采用下面的样式*/
@media screen and (max-device-width: 1024px) {
}
</style>
